using System.Collections;
using System.Collections.Generic;

namespace CheckoutCodeKata
{
    public class PriceList
    {
        private readonly Dictionary<string, int> _prices;

        public PriceList(Dictionary<string, int> prices)
        {
            _prices = prices;
        }

        public int GetPrice(string itemCode)
        {
            return _prices[itemCode];
        }
    }
}